package com.yifeng.repo.controller.postman.configure;

import com.yifeng.repo.controller.postman.work.task.handler.PostInterceptor;
import com.yifeng.repo.controller.postman.work.task.handler.impl.SimplePostInterceptor;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by daibing on 2023/5/10.
 */
@Data
@ConfigurationProperties(prefix = "yfcloud.controller.postman")
public class PostmanProperties {

    /**
     * 是否启用通用请求管理器
     */
    private boolean enablePostmanManager = false;

    /**
     * PostInterceptor处理器
     */
    private Class<? extends PostInterceptor> postInterceptorHandler = SimplePostInterceptor.class;

    /**
     * http请求尝试次数
     */
    private int tryTimes = 1;

    /**
     * http请求超时时长
     */
    private int timeoutMillis = 3000;

    /**
     * 回调地址前缀
     */
    private String callbackPrefix = "/callback";

}
